
<html>
    <head>
        <title>asisto</title>
        
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'jquery.weekcalendar.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'demo.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'jquery-ui-1.7.2.custom.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'superfish.css')}" />

        <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
        <link rel="stylesheet" href="${resource(dir:'css',file:'estilo.css')}" type="text/css">
        <link rel="stylesheet" href="${resource(dir:'css',file:'login-twitter.css')}" type="text/css">

        <g:javascript library="jquery"/>
        <g:javascript src="jquery/jquery-ui-1.7.2.custom.min.js"/>
        <g:javascript src="weekcalendar/jquery.weekcalendar.js"/>
        <g:javascript src="jquery/jquery.pop.js"/>
        <g:javascript src="jquery/jquery.tipsy.js"/>

        <g:javascript src="jquery/superfish.js"/>
        <g:javascript src="jquery/jquery.bgiframe.min.js"/>
        <g:javascript src="jquery/hoverIntent.js"/>
        <g:javascript src="jquery/supersubs.js"/>

        <jq:jquery>
            jQuery(document).ready(function(){
                jQuery("ul.sf-menu").supersubs({
                        minWidth:12,
                        maxWidth:30,
                        extraWidth:1
                    }).superfish({
                        animation:     {opacity:'show',height:'show'},
                        speed:         'normal',
                        autoArrows:    true,
                        dropShadows:   true
                    }).find('ul').bgIframe({opacity:false});
            });
        </jq:jquery>


        <g:layoutHead />        
        
    </head>
    <body>	
        <!--<div id="doc3" class="yui-t5">-->
        <div id="doc4" class="yui-t7">

		            
              <div id="hd" role="banner">

                <!--
                  <div class="logo">
                      <a href="${resource(dir:'/')}">
                        <img id="logo" src="${resource(dir: 'images', file: 'logo-asistogal.gif')}"  alt="asistogal"/>
                      </a>
                  </div>
                -->

                  <!--
                  <div class="titulo">
                  asistencia domiciliaria
                  </div>
                  -->

                      <g:isLoggedIn>
                          <g:render template="/login/sidebar_profile"/>
                      </g:isLoggedIn>
                      <g:isNotLoggedIn>
                          <g:render template="/login/sidebar_login"/>
                      </g:isNotLoggedIn>


              </div>


              <div id="bd"><!-- start body -->


               <g:isLoggedIn>
                      <div id="menu">
                  <ul class="sf-menu">
                      <li class="current">
                        <a href="${resource(dir:'')}">Inicio</a>
                      </li>

                      <li><a href="#">Clientes</a>
                      <ul>
                          <li>
                          <g:link action="list" controller="cliente">Lista</g:link>
                          </li>

                          <li>
                          <g:link action="create" controller="cliente" params="${params}">Nuevo cliente</g:link>
                          </li>
                      </ul>
                      </li>


                      <li><a href="#">Tareas</a>
                      <ul>
                          <li>
                          <g:link action="list" controller="tarea">Lista</g:link>
                          </li>

                          <li>
                          <g:link action="create" controller="tarea" params="${params}">Nueva tarea</g:link>
                          </li>
                      </ul>
                      </li>

                      <g:ifAllGranted role="ROLE_ADMIN">
                      <li><a href="#">Administración</a>
                      <ul>
                          <li>
                          <g:link action="list" controller="cliente">Clientes</g:link>
                          </li>

                      </ul>
                      </li>
                      </g:ifAllGranted>
                  </ul>
                </div>
                  </g:isLoggedIn>

                  <div id="yui-main">
                      <div class="yui-g">

                        <div class="contenido">
                          <g:if test="${flash.message}">
                              <div class="flash">
                                  ${flash.message}
                              </div>
                          </g:if>
                          <g:layoutBody/>
                        </div>
                      </div>
                  </div>

              </div>  <!-- end body -->
              
              <div id="ft">
                  <div class="footer">
                      <div class="footer-wrapper">
                        <p>
                          (c) asistogal <g:meta name="app.version"/> on Grails <g:meta name="app.grails.version"/>.
                        </p>
                      </div>
                  </div>
              </div>
              
        </div>
    </body>	
</html>
